home *** CD-ROM | disk | FTP | other *** search
- Path: news.alaska.edu!camelot!fxfjn
- From: fxfjn@camelot.acf-lab.alaska.edu (Frankie J. Nichols)
- Newsgroups: comp.unix.programmer,comp.lang.c
- Subject: Re: Geting program path
- Followup-To: comp.unix.programmer,comp.lang.c
- Date: 16 Apr 1996 17:14:27 GMT
- Organization: University of Alaska Computer Network
- Message-ID: <4l0khj$va9@news.alaska.edu>
- References: <3mtt4d$6ml@alfa.ist.utl.pt>
- NNTP-Posting-Host: camelot.acf-lab.alaska.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- try 'which' then the command (executable) you need the path of
-
- -frankie
-
-
- Highlander C H B M (l39801@ci.ist.utl.pt) wrote:
-
- : I need to find the path of the executable so I can stat() and touch it.
- : Anybody knows how to do it ? ( geting the $PWD or getcwd() doesn't help
- : cause it can be anywhere along the $PATH )
-
- : Tkx!
-
-
-